package com.cloud.fim.gate.container.repository;


import com.cloud.fim.gate.container.Session;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
public interface SessionRepository {
    /**
     * @param cid the channel id of user
     * @return
     */
     Session get(Integer cid);


    /**
     * add session
     * @param cid the channel id of user
     * @param session the session  of user
     */
     void add(Integer cid,Session session);

    /**
     * @param cid
     */
    void remove(Integer cid);


    /**
     * clear
     */
    void removeAll();
}
